package com.example.service.xitongshouye.impl;

import com.example.dao.xitongshouye.ZhanghuDao;
import com.example.pojo.User;
import com.example.service.xitongshouye.ZhanghuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName: ***
 * @Description: ***
 * @author: ***
 * @date: 2022/11/25 19:51
 */
@Service
public class ZhanghuServiceImpl implements ZhanghuService {
    @Autowired
    private ZhanghuDao zhanghuDao;

    //查询用户信息
    public User getuser(String account){
        return zhanghuDao.getuser(account);
    }

    //修改账号密码
    public int uppassword(String password,String account){
        return zhanghuDao.uppassword(password,account);
    }

    //修改头像路径
    public int uptouxiang(String avatarUrl,String account){
        return zhanghuDao.uptouxiang(avatarUrl,account);
    }
}
